{template 'common/header-gw'}
<ol class="breadcrumb">
	<li><a href="./?refresh"><i class="fa fa-home"></i></a></li>
	<li class=""><a href="{url 'user/display'}">用户管理</a></li>
	<li class="active">查看用户权限</li>
</ol>
<ul class="nav nav-tabs">
	<li><a href="{php echo url('user/display');}">用户列表</a></li>
	<li><a href="{url 'user/edit' array('uid' => $uid)}">编辑用户</a></li>
	<li class="active"><a href="{php echo url('user/permission', array('uid' => $uid));}">查看用户权限</a></li>
</ul>

<div class="clearfix">
	<div class="form form-horizontal" >
		<h5 class="page-header">用户组基本权限</h5>
		<div class="form-group">
			<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">用户组名</label>
			<div class="col-sm-10">
				<p class="form-control-static">{$group['name']}&nbsp;&nbsp;<a href="{php echo url('user/group/post', array('id' => $group['id']));}" title="编辑当前用户所在用户组"><i class="fa fa-edit"></i></a></p>
			</div>
		</div>
		<h5 class="page-header">用户组可使用的系统权限</h5>
        <table class="tb table table-hover">
            <thead class="navbar-inner">
            <tr>
                <th>模块</th>
                <th>可见</th>
                <th>增加</th>
                <th>修改</th>
                <th>删除</th>
                <th>审核</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>监测通知</td>
                <td><input {if in_array('plan/disp', $owned_permission) } checked="checked" {/if} class="check_list12" type="checkbox" name="per[]" disabled="disabled"  value="plan/disp"></td>
                <td><input {if in_array('plan/add', $owned_permission) } checked="checked" {/if} class="check_list12" type="checkbox" name="per[]" disabled="disabled" value="plan/add"></td>
                <td><input {if in_array('plan/edit', $owned_permission) } checked="checked" {/if} class="check_list12" type="checkbox" name="per[]" disabled="disabled" value="plan/edit"></td>
                <td><input {if in_array('plan/delete', $owned_permission) } checked="checked" {/if} class="check_list12" type="checkbox" name="per[]" disabled="disabled" value="plan/delete"></td>
                <td><input {if in_array('plan/audit', $owned_permission) } checked="checked" {/if} class="check_list12" type="checkbox" name="per[]" disabled="disabled" value="plan/audit"></td>
            </tr>
            <tr>
                 <td>拨款凭证信息</td>
                <td><input {if in_array('grant/disp', $owned_permission) } checked="checked" {/if} class="check_list13" type="checkbox" name="per[]" disabled="disabled" value="grant/disp"></td>
                <td><input {if in_array('grant/add', $owned_permission) } checked="checked" {/if} class="check_list13" type="checkbox" name="per[]" disabled="disabled" value="grant/add"></td>
                <td><input {if in_array('grant/edit', $owned_permission) } checked="checked" {/if} class="check_list13" type="checkbox" name="per[]" disabled="disabled" value="grant/edit"></td>
                <td><input {if in_array('grant/delete', $owned_permission) } checked="checked" {/if} class="check_list13" type="checkbox" name="per[]" disabled="disabled" value="grant/delete"></td>
                <td><input {if in_array('grant/audit', $owned_permission) } checked="checked" {/if} class="check_list13" type="checkbox" name="per[]" disabled="disabled" value="grant/audit"></td>
            </tr>
            <tr>
                 <td>库款划拨信息</td>
                <td><input {if in_array('finance/disp', $owned_permission) } checked="checked" {/if} class="check_list14" type="checkbox" name="per[]" disabled="disabled" value="finance/disp"></td>
                <td><input {if in_array('finance/add', $owned_permission) } checked="checked" {/if} class="check_list14" type="checkbox" name="per[]" disabled="disabled" value="finance/add"></td>
                <td><input {if in_array('finance/edit', $owned_permission) } checked="checked" {/if} class="check_list14" type="checkbox" name="per[]" disabled="disabled" value="finance/edit"></td>
                <td><input {if in_array('finance/delete', $owned_permission) } checked="checked" {/if} class="check_list14" type="checkbox" name="per[]" disabled="disabled" value="finance/delete"></td>
                <td><input {if in_array('finance/audit', $owned_permission) } checked="checked" {/if} class="check_list14" type="checkbox" name="per[]" disabled="disabled" value="finance/audit"></td>
            </tr>
            </tbody>
        </table>
		<div class="form-group">
			<div class="col-sm-offset-2 col-md-offset-2 col-lg-offset-1 col-xs-12 col-sm-10 col-md-10 col-lg-11">
				<a class="btn btn-primary" href="{url 'user/edit' array('uid' => $uid)}">编辑当前用户资料</a>
			</div>
		</div>
	</div>
</div>
{template 'common/footer-gw'}
